<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ConfigType extends Model
{
    protected $table = 'config_type';
    const CREATED_AT = 'create_time';
    const UPDATED_AT = 'update_time';
    protected $fillable = ['name','desc'];

    public function children(){
        return $this->hasMany('App\Models\Config','type_id','id');
    }

}
